package com.taxigang.server;


import java.util.HashMap;
import java.util.Map;


public class CountryLang {

        private final Map<String,String>countries = new HashMap<String,String>();
        
        public String getLang(String country){
                String lang = countries.get(country);
                if (lang==null){
                        lang = "xx";
                }
                return lang;
        }
        public CountryLang(){
                countries.put("AF","en");   //Afghanistan
                countries.put("AX","en");   //Aland Islands
                countries.put("AL","en");   //Albania
                countries.put("DZ","en");   //Algeria
                countries.put("AS","en");   //American Samoa
                countries.put("AD","en");   //Andorra
                countries.put("AO","en");   //Angola
                countries.put("AI","en");   //Anguilla
                countries.put("AQ","en");   //Antarctica
                countries.put("AG","en");   //Antigua and Barbuda
                countries.put("AR","es");   //Argentina
                countries.put("AM","en");   //Armenia
                countries.put("AW","en");   //Aruba
                countries.put("AC","en");   //Ascension Island
                countries.put("AU","en");   //Australia
                countries.put("AT","de");   //Austria
                countries.put("AZ","en");   //Azerbaijan
                countries.put("BS","en");   //Bahamas
                countries.put("BH","en");   //Bahrain
                countries.put("BB","en");   //Barbados
                countries.put("BD","en");   //Bangladesh
                countries.put("BY","en");   //Belarus
                countries.put("BE","en");   //Belgium
                countries.put("BZ","en");   //Belize
                countries.put("BJ","en");   //Benin
                countries.put("BM","en");   //Bermuda
                countries.put("BT","en");   //Bhutan
                countries.put("BW","en");   //Botswana
                countries.put("BO","en");   //Bolivia
                countries.put("BA","en");   //Bosnia and Herzegovina
                countries.put("BV","en");   //Bouvet Island
                countries.put("BR","en");   //Brazil
                countries.put("IO","en");   //British Indian Ocean Territory
                countries.put("BN","en");   //Brunei Darussalam
                countries.put("BG","en");   //Bulgaria
                countries.put("BF","en");   //Burkina Faso
                countries.put("BI","en");   //Burundi
                countries.put("KH","en");   //Cambodia
                countries.put("CM","en");   //Cameroon
                countries.put("CA","en");   //Canada
                countries.put("CV","en");   //Cape Verde
                countries.put("KY","en");   //Cayman Islands
                countries.put("CF","en");   //Central African Republic
                countries.put("TD","en");   //Chad
                countries.put("CL","es");   //Chile
                countries.put("CN","en");   //China
                countries.put("CX","en");   //Christmas Island
                countries.put("CC","en");   //Cocos (Keeling) Islands
                countries.put("CO","en");   //Colombia
                countries.put("KM","en");   //Comoros
                countries.put("CG","en");   //Congo
                countries.put("CD","en");   //Congo, Democratic Republic
                countries.put("CK","en");   //Cook Islands
                countries.put("CR","en");   //Costa Rica
                countries.put("CI","en");   //Cote D'Ivoire (Ivory Coast)
                countries.put("HR","en");   //Croatia (Hrvatska)
                countries.put("CU","en");   //Cuba
                countries.put("CY","en");   //Cyprus
                countries.put("CZ","en");   //Czech Republic
                countries.put("CS","en");   //Czechoslovakia (former)
                countries.put("DK","en");   //Denmark
                countries.put("DJ","en");   //Djibouti
                countries.put("DM","en");   //Dominica
                countries.put("DO","en");   //Dominican Republic
                countries.put("TP","en");   //East Timor
                countries.put("EC","en");   //Ecuador
                countries.put("EG","en");   //Egypt
                countries.put("SV","en");   //El Salvador
                countries.put("GQ","en");   //Equatorial Guinea
                countries.put("ER","en");   //Eritrea
                countries.put("EE","en");   //Estonia
                countries.put("ET","en");   //Ethiopia
                countries.put("EU","en");   //European Union
                countries.put("FK","en");   //Falkland Islands (Malvinas)
                countries.put("FO","en");   //Faroe Islands
                countries.put("FJ","en");   //Fiji
                countries.put("FI","en");   //Finland
                countries.put("FR","en");   //France
                countries.put("FX","en");   //France, Metropolitan
                countries.put("GF","en");   //French Guiana
                countries.put("PF","en");   //French Polynesia
                countries.put("TF","en");   //French Southern Territories
                countries.put("MK","en");   //F.Y.R.O.M. (Macedonia)
                countries.put("GA","en");   //Gabon
                countries.put("GM","en");   //Gambia
                countries.put("GE","en");   //Georgia
                countries.put("DE","de");   //Germany
                countries.put("GH","en");   //Ghana
                countries.put("GI","en");   //Gibraltar
                countries.put("GB","en");   //Great Britain (UK)
                countries.put("GR","en");   //Greece
                countries.put("GL","en");   //Greenland
                countries.put("GD","en");   //Grenada
                countries.put("GP","en");   //Guadeloupe
                countries.put("GU","en");   //Guam
                countries.put("GT","en");   //Guatemala
                countries.put("GG","en");   //Guernsey
                countries.put("GN","en");   //Guinea
                countries.put("GW","en");   //Guinea-Bissau
                countries.put("GY","en");   //Guyana
                countries.put("HT","en");   //Haiti
                countries.put("HM","en");   //Heard and McDonald Islands
                countries.put("HN","en");   //Honduras
                countries.put("HK","en");   //Hong Kong
                countries.put("HU","en");   //Hungary
                countries.put("IS","en");   //Iceland
                countries.put("IN","en");   //India
                countries.put("ID","en");   //Indonesia
                countries.put("IR","en");   //Iran
                countries.put("IQ","en");   //Iraq
                countries.put("IE","en");   //Ireland
                countries.put("IL","en");   //Israel
                countries.put("IM","en");   //Isle of Man
                countries.put("IT","en");   //Italy
                countries.put("JE","en");   //Jersey
                countries.put("JM","en");   //Jamaica
                countries.put("JP","en");   //Japan
                countries.put("JO","en");   //Jordan
                countries.put("KZ","en");   //Kazakhstan
                countries.put("KE","en");   //Kenya
                countries.put("KI","en");   //Kiribati
                countries.put("KP","en");   //Korea (North)
                countries.put("KR","en");   //Korea (South)
                countries.put("XK","en");   //Kosovo*
                countries.put("KW","en");   //Kuwait
                countries.put("KG","en");   //Kyrgyzstan
                countries.put("LA","en");   //Laos
                countries.put("LV","en");   //Latvia
                countries.put("LB","en");   //Lebanon
                countries.put("LI","en");   //Liechtenstein
                countries.put("LR","en");   //Liberia
                countries.put("LY","en");   //Libya
                countries.put("LS","en");   //Lesotho
                countries.put("LT","en");   //Lithuania
                countries.put("LU","en");   //Luxembourg
                countries.put("MO","en");   //Macau
                countries.put("MG","en");   //Madagascar
                countries.put("MW","en");   //Malawi
                countries.put("MY","en");   //Malaysia
                countries.put("MV","en");   //Maldives
                countries.put("ML","en");   //Mali
                countries.put("MT","en");   //Malta
                countries.put("MH","en");   //Marshall Islands
                countries.put("MQ","en");   //Martinique
                countries.put("MR","en");   //Mauritania
                countries.put("MU","en");   //Mauritius
                countries.put("YT","en");   //Mayotte
                countries.put("MX","es");   //Mexico
                countries.put("FM","en");   //Micronesia
                countries.put("MC","en");   //Monaco
                countries.put("MD","en");   //Moldova
                countries.put("MN","en");   //Mongolia
                countries.put("ME","en");   //Montenegro
                countries.put("MS","en");   //Montserrat
                countries.put("MA","en");   //Morocco
                countries.put("MZ","en");   //Mozambique
                countries.put("MM","en");   //Myanmar
                countries.put("NA","en");   //Namibia
                countries.put("NR","en");   //Nauru
                countries.put("NP","en");   //Nepal
                countries.put("NL","en");   //Netherlands
                countries.put("AN","en");   //Netherlands Antilles
                countries.put("NT","en");   //Neutral Zone
                countries.put("NC","en");   //New Caledonia
                countries.put("NZ","en");   //New Zealand (Aotearoa)
                countries.put("NI","en");   //Nicaragua
                countries.put("NE","en");   //Niger
                countries.put("NG","en");   //Nigeria
                countries.put("NU","en");   //Niue
                countries.put("NF","en");   //Norfolk Island
                countries.put("MP","en");   //Northern Mariana Islands
                countries.put("NO","en");   //Norway
                countries.put("OM","en");   //Oman
                countries.put("PK","en");   //Pakistan
                countries.put("PW","en");   //Palau
                countries.put("PS","en");   //Palestinian Territory, Occupied
                countries.put("PA","en");   //Panama
                countries.put("PG","en");   //Papua New Guinea
                countries.put("PY","es");   //Paraguay
                countries.put("PE","es");   //Peru
                countries.put("PH","en");   //Philippines
                countries.put("PN","en");   //Pitcairn
                countries.put("PL","en");   //Poland
                countries.put("PT","en");   //Portugal
                countries.put("PR","en");   //Puerto Rico
                countries.put("QA","en");   //Qatar
                countries.put("RE","en");   //Reunion
                countries.put("RO","ro");   //Romania
                countries.put("RU","en");   //Russian Federation
                countries.put("RW","en");   //Rwanda
                countries.put("GS","en");   //S. Georgia and S. Sandwich Isls.
                countries.put("SH","en");   //Saint Helena
                countries.put("KN","en");   //Saint Kitts and Nevis
                countries.put("LC","en");   //Saint Lucia
                countries.put("MF","en");   //Saint Martin
                countries.put("VC","en");   //Saint Vincent & the Grenadines
                countries.put("WS","en");   //Samoa
                countries.put("SM","en");   //San Marino
                countries.put("ST","en");   //Sao Tome and Principe
                countries.put("SA","en");   //Saudi Arabia
                countries.put("SN","en");   //Senegal
                countries.put("RS","en");   //Serbia
                countries.put("YU","en");   //Serbia and Montenegro (former)
                countries.put("SC","en");   //Seychelles
                countries.put("SL","en");   //Sierra Leone
                countries.put("SG","en");   //Singapore
                countries.put("SI","en");   //Slovenia
                countries.put("SK","en");   //Slovak Republic
                countries.put("SB","en");   //Solomon Islands
                countries.put("SO","en");   //Somalia
                countries.put("ZA","en");   //South Africa
                countries.put("SS","en");   //South Sudan
                countries.put("ES","es");   //Spain
                countries.put("LK","en");   //Sri Lanka
                countries.put("SD","en");   //Sudan
                countries.put("SR","en");   //Suriname
                countries.put("SJ","en");   //Svalbard & Jan Mayen Islands
                countries.put("SZ","en");   //Swaziland
                countries.put("SE","en");   //Sweden
                countries.put("CH","de");   //Switzerland
                countries.put("SY","en");   //Syria
                countries.put("TW","en");   //Taiwan
                countries.put("TJ","en");   //Tajikistan
                countries.put("TZ","en");   //Tanzania
                countries.put("TH","en");   //Thailand
                countries.put("TG","en");   //Togo
                countries.put("TK","en");   //Tokelau
                countries.put("TO","en");   //Tonga
                countries.put("TT","en");   //Trinidad and Tobago
                countries.put("TN","en");   //Tunisia
                countries.put("TR","en");   //Turkey
                countries.put("TM","en");   //Turkmenistan
                countries.put("TC","en");   //Turks and Caicos Islands
                countries.put("TV","en");   //Tuvalu
                countries.put("UG","en");   //Uganda
                countries.put("UA","en");   //Ukraine
                countries.put("AE","en");   //United Arab Emirates
                countries.put("UK","en");   //United Kingdom
                countries.put("US","en_US");   //United States
                countries.put("UM","en");   //US Minor Outlying Islands
                countries.put("UY","en");   //Uruguay
                countries.put("SU","en");   //USSR (former)
                countries.put("UZ","en");   //Uzbekistan
                countries.put("VU","en");   //Vanuatu
                countries.put("VA","en");   //Vatican City State (Holy See)
                countries.put("VE","en");   //Venezuela
                countries.put("VN","en");   //Viet Nam
                countries.put("VG","en");   //British Virgin Islands
                countries.put("VI","en");   //Virgin Islands (U.S.)
                countries.put("WF","en");   //Wallis and Futuna Islands
                countries.put("EH","en");   //Western Sahara
                countries.put("YE","en");   //Yemen
                countries.put("ZM","en");   //Zambia
                countries.put("(ZR","en");   //Zaire)","en");   //See CD Congo, Democratic Republic
                countries.put("ZW","en");   //Zimbabwe
        }
}
